package cn.edu.sdjzu.xg.eagle.util;

import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;

public class TxtHelper {
    public final static String readTxt(String filePath)throws IOException {
        BufferedReader br = new BufferedReader(new FileReader(filePath));
        StringBuffer sb = new StringBuffer();
        String line = null;
        while ((line = br.readLine()) != null) {
            sb.append(line);
        }
        br.close();
        return sb.toString();
    }
}
